package com.yjc.springcloud.alibaba.service.impl;

import com.yjc.springcloud.alibaba.mapper.StorageMapper;
import com.yjc.springcloud.alibaba.service.StorageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author shkstart
 * @create 2022-08-17 23:01
 */
@Service
public class StorageServiceImpl implements StorageService {
    @Autowired
    StorageMapper storageMapper;

    @Override
    public void decreaseStorage(Long productId, Integer count) {
        storageMapper.reduceStorage(productId, count);
    }
}
